<!DOCTYPE html>
{% load static %}
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{% block title %}{% endblock %}</title>
    <link rel="stylesheet" type="text/css" href="{% static 'css/bootstrap.min.css'%}"/>
    <link rel="stylesheet" type="text/css" href="{% static 'css/bootstrap-datepicker.min.css'%}"/>
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap" rel="stylesheet">
    <style>
        /* 全局字体和背景设置 */
        body {
            font-family: 'Poppins', sans-serif;
            background: linear-gradient(to bottom, #ffe4e6, #ffc2c4);
            color: #333;
            margin: 0;
            padding: 0;
        }

        /* 导航栏样式 */
        .navbar {
            background: linear-gradient(to right, #ff6b81, #ff8fa3);
            border: none;
            border-radius: 0;
        }

        .navbar .navbar-brand {
            color: #fff !important;
            font-size: 20px;
            font-weight: 600;
        }

        .navbar .navbar-brand:hover {
            color: #ffe4e6 !important;
        }

        .navbar-nav > li > a {
            color: #fff !important;
            font-size: 16px;
            font-weight: 500;
            padding: 15px 20px;
        }

        .navbar-nav > li > a:hover {
            background-color: #ffe4e6;
            color: #ff6b81 !important;
            border-radius: 5px;
            transition: all 0.3s ease;
        }

        .navbar-right > li > a {
            color: #fff !important;
            font-size: 14px;
        }

        .navbar-right > li > a:hover {
            background-color: #ffe4e6;
            color: #ff6b81 !important;
            border-radius: 5px;
            transition: all 0.3s ease;
        }

        /* 内容块默认边距 */
        .container-fluid {
            padding: 20px;
        }

        /* 页脚样式 */
        footer {
            background-color: #ff6b81;
            color: white;
            text-align: center;
            padding: 10px 0;
            margin-top: 20px;
        }

        footer a {
            color: #ffe4e6;
            text-decoration: none;
        }

        footer a:hover {
            text-decoration: underline;
        }

        /* 响应式优化 */
        @media (max-width: 768px) {
            .navbar-nav > li > a {
                font-size: 14px;
                padding: 10px 15px;
            }
            .navbar .navbar-brand {
                font-size: 18px;
            }
        }
    </style>
    {% block css %}{% endblock %}
</head>
<body>
    <nav class="navbar navbar-default">
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbarCollapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a href="" class="navbar-brand">员工管理系统</a>
            </div>
            <div id="navbarCollapse" class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                    <li><a href="{% url 'emp_list'%}">员工管理</a></li>
                    <li><a href="{% url 'dept_list'%}">部门管理</a></li>
                    <li><a href="{% url 'order_list'%}">订单管理</a></li>
                    <li><a href="{% url 'echarts_list'%}">报表管理</a></li>
                </ul>
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="#">欢迎 {{ request.session.loginname }}</a></li>
                    <li><a href="{% url 'loginout'%}">退出</a></li>
                </ul>
            </div>
        </div>
    </nav>
    <div class="container-fluid">
        {% block content %}{% endblock %}
    </div>
    <footer>
        <p>&copy; 2024 员工管理系统. <a href="#">隐私政策</a> | <a href="#">服务条款</a></p>
    </footer>
    <script type="text/javascript" src="{% static 'js/jquery-3.7.1.min.js'%}"></script>
    <script type="text/javascript" src="{% static 'js/bootstrap.min.js'%}"></script>
    <script type="text/javascript" src="{% static 'js/bootstrap-datepicker.min.js'%}"></script>
    <script type="text/javascript" src="{% static 'locale/bootstrap-datepicker.zh-CN.min.js'%}"></script>
    {% block js %}{% endblock %}
</body>
</html>
